/**
 * 
 */
package com.linkage.lcims.base.dao.cdma.impl;

import java.util.Map;


import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.cdma.interfaces.VpdnBindImsiDAO;
import com.linkage.lcims.base.po.cdma.CVpdnBindImsi;
import com.linkage.util.exception.DAOException;

/**
 * 
 * 
 */
public class VpdnBindImsiDAOImpl extends HibernateBaseDAOImpl implements
		VpdnBindImsiDAO {

	public void deleteVpdnBindImsi(CVpdnBindImsi vpdnBindImsi)
			throws DAOException {
		try {
			this.delete(vpdnBindImsi);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public CVpdnBindImsi getVpdnBindImsi(CVpdnBindImsi vpdnBindImsi)
			throws DAOException {
		try {
			return (CVpdnBindImsi)this.getByID(CVpdnBindImsi.class, vpdnBindImsi.getComp_id());
		} catch (Exception e) {
			throw new DAOException(e);
		}	
	}

	public void saveVpdnBindImsi(CVpdnBindImsi vpdnBindImsi)
			throws DAOException {
		try {
			this.save(vpdnBindImsi);
		} catch (Exception e) {
			throw new DAOException(e);
		}	
	}

	public void updateVpdnBindImsi(CVpdnBindImsi vpdnBindImsi)
			throws DAOException {
		try {
			this.merge(vpdnBindImsi);
		} catch (Exception e) {
			throw new DAOException(e);
		}
			
	}

	public void updateVpdnBindImsiFileds(Map<String, ?> keys,
			Map<String, ?> fields) throws DAOException {
		try {
			this.updateField("com.linkage.lcims.base.po.cdma.CVpdnBindImsi"
					,"com.linkage.lcims.base.po.cdma.CVpdnBindImsiPK", keys, fields);
		} catch (Exception e) {
			throw new DAOException(e);
		}
		
	}


}
